package system;

import system.Grade;

import java.util.ArrayList;

public class Student {
    //属性

    //1、学号
     private String num;
    //2、姓名
    private String name;

    //3、年龄
    private int age;

    //4、家庭地址
    private String address;

    //5、成绩
    private ArrayList<Grade> grades;

    //6、学生出生日期
    private String date;

    //构造方法

    //1、无参构造

    public Student() {
    }
    //2、全参构造

    public Student(String num, String name, int age, String address, ArrayList<Grade> grades, String date) {
        this.num = num;
        this.name = name;
        this.age = age;
        this.address = address;
        this.grades = grades;
        this.date = date;
    }


    //getter and setter

    public void setDate(String date) {
        this.date = date;
    }

    public void setGrades(ArrayList<Grade> grades) {
        this.grades = grades;
    }

    public ArrayList<Grade> getGrades() {

        return grades;
    }

    public String getDate() {
        return date;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num += num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public ArrayList<Grade> getGrade() {
        return grades;
    }

    public void setGrade(ArrayList<Grade> grade) {
        this.grades = grade;
    }
}
